

import './assets/main.scss'

import { createApp } from 'vue'
import App from './App.vue'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'

import router from '@/router/index.js'



//创建新的实例
const app = createApp(App)
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
	app.component(key, component)
}



//官方文档中明确指出use方法必须要在mount挂载之前使用
app.use(router)

app.use(ElementPlus, {
	locale: zhCn,
})

app.mount('#app')